package com.sdust.feign.clients;

import com.sdust.model.common.Result;
import com.sdust.model.user.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sdust-talk-user")
public interface UserFeignClient {

    @GetMapping("/service/user/test")
    Result testUser(@RequestParam String userName);

    @GetMapping("/service/user/getUserById")
    User getUserById(@RequestParam Integer id);
}
